package com.zms.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by 许小宝 on 2017/10/26.
 */
@RestController
@RefreshScope
public class TestController {
    @Value("${profile}")
    private String profile;

    @RequestMapping(value = "/profile")
    public String profile() {
        return this.profile;
    }
}
